/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.hk.shop.entity.order;

import com.thinkgem.jeesite.modules.hk.shop.entity.shop.HkShopUserOrderWithdraw;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.modules.hk.sys.entity.user.HkUser;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 用户订单管理Entity
 *
 * @author 罗天文
 * @version 2018-08-22
 */
public class HkShopUserOrderDetail extends DataEntity<HkShopUserOrderDetail> {

    private static final long serialVersionUID = 1L;
    private HkShopUserOrder order;        // 订单号 父类
    private String productId;        // 商品id
    private String skuId;        // skuid
    private String imgSrc;        // 图片路径
    private String title;        // 名称
    private String integral;        // 乐币
    private String activityType;        // 活动类型
    private String activityPrice;        // 活动乐币
    private String state;        // 订单状态
    private Date limittime;        // 限制时间
    private String number;        // 数量
    private String colorname;        // 颜色
    private String specname;        // 规格
    private String hkUserId;        // 自媒体商户id
    private String isstorage;        // 是否加入储物箱
    private HkUser user;        // 用户id
    private HkShopUserOrderWithdraw orderWithdraw;        // 订单号 父类


    public HkShopUserOrderDetail() {
        super();
    }

    public HkShopUserOrderDetail(String id) {
        super(id);
    }

    public HkShopUserOrderDetail(HkShopUserOrder order) {
        this.order = order;
    }

    public HkShopUserOrderDetail(HkShopUserOrderWithdraw orderWithdraw) {
        this.orderWithdraw = orderWithdraw;
    }

    @Length(min = 0, max = 20, message = "订单号长度必须介于 0 和 20 之间")
    public HkShopUserOrder getOrder() {
        return order;
    }

    public void setOrder(HkShopUserOrder order) {
        this.order = order;
    }

    @Length(min = 0, max = 32, message = "商品id长度必须介于 0 和 32 之间")
    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    @Length(min = 0, max = 32, message = "skuid长度必须介于 0 和 32 之间")
    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    @Length(min = 0, max = 200, message = "图片路径长度必须介于 0 和 200 之间")
    public String getImgSrc() {
        return imgSrc;
    }

    public void setImgSrc(String imgSrc) {
        this.imgSrc = imgSrc;
    }

    @Length(min = 0, max = 200, message = "名称长度必须介于 0 和 200 之间")
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    @Length(min = 0, max = 11, message = "乐币长度必须介于 0 和 11 之间")
    public String getIntegral() {
        return integral;
    }

    public void setIntegral(String integral) {
        this.integral = integral;
    }

    @Length(min = 0, max = 2, message = "活动类型长度必须介于 0 和 2 之间")
    public String getActivityType() {
        return activityType;
    }

    public void setActivityType(String activityType) {
        this.activityType = activityType;
    }

    @Length(min = 0, max = 11, message = "活动乐币长度必须介于 0 和 11 之间")
    public String getActivityPrice() {
        return activityPrice;
    }

    public void setActivityPrice(String activityPrice) {
        this.activityPrice = activityPrice;
    }

    @Length(min = 0, max = 2, message = "订单状态长度必须介于 0 和 2 之间")
    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getLimittime() {
        return limittime;
    }

    public void setLimittime(Date limittime) {
        this.limittime = limittime;
    }

    @Length(min = 0, max = 11, message = "数量长度必须介于 0 和 11 之间")
    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    @Length(min = 0, max = 100, message = "颜色长度必须介于 0 和 100 之间")
    public String getColorname() {
        return colorname;
    }

    public void setColorname(String colorname) {
        this.colorname = colorname;
    }

    @Length(min = 0, max = 100, message = "规格长度必须介于 0 和 100 之间")
    public String getSpecname() {
        return specname;
    }

    public void setSpecname(String specname) {
        this.specname = specname;
    }

    @Length(min = 0, max = 32, message = "自媒体商户id长度必须介于 0 和 32 之间")
    public String getHkUserId() {
        return hkUserId;
    }

    public void setHkUserId(String hkUserId) {
        this.hkUserId = hkUserId;
    }

    @Length(min = 0, max = 11, message = "是否加入储物箱长度必须介于 0 和 11 之间")
    public String getIsstorage() {
        return isstorage;
    }

    public void setIsstorage(String isstorage) {
        this.isstorage = isstorage;
    }

    public HkUser getUser() {
        return user;
    }

    public void setUser(HkUser user) {
        this.user = user;
    }

}